<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("path", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>

<link href="<%=path%>/manager/assets/css/bootstrap.min.css"
	rel="stylesheet" />
<link rel="stylesheet"
	href="<%=path%>/manager/assets/css/font-awesome.min.css" />
<link rel="stylesheet" href="<%=path%>/manager/assets/css/ace.min.css" />
<link rel="stylesheet"
	href="<%=path%>/manager/assets/css/ace-rtl.min.css" />
<link rel="stylesheet"
	href="<%=path%>/manager/assets/css/ace-skins.min.css" />
<script src="<%=path%>/manager/assets/js/ace-extra.min.js"></script>

<link href="<%=path%>/web/assets/css/amazeui.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/web/assets/css/admin.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/web/assets/css/my.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/web/basic/css/demo.css" rel="stylesheet"
	type="text/css" />

<link href="<%=path%>/web/css/hmstyle.css" rel="stylesheet"
	type="text/css" />
<script src="<%=path%>/web/assets/js/jquery.min.js"></script>
<script src="<%=path%>/web/assets/js/amazeui.min.js"></script>
<%-- <script src="<%=path%>/web/js/myJQuery.js"></script>  --%>
<script type="text/javascript" src="<%=path%>/web/js/jquery-2.2.4.js"></script>
<script type="text/javascript">
function logOut(){
	//Ajax调用处理
	jQuery.ajax({
	    type: "POST",
	    url: "<%=path%>/user/logOut.do",
			dataType : "json",
			success : function(data) {
				alert("操作成功");
				alert(data.SUCCESS);
				location.reload(true);
			},
			error : function() {
				alert("操作失败");
			}
		});

	}
</script>
</head>
<body>
<body>
	${userInfoSession }
	<div class="hmtop">


		<div class="profile-user-info profile-user-info-striped">
			<div class="profile-info-row">
				<div class="profile-info-name">用户名</div>

				<div class="profile-info-value">
					<span class="editable" id="username">${userInfoSession.userName}</span>
				</div>
			</div>



			<div class="profile-info-row">
				<div class="profile-info-name">性别</div>

				<div class="profile-info-value">

					<c:choose>
						<c:when test="${userInfoSession.sex=='boy'}">
							<span class="editable" id="sex">男</span>
						</c:when>
						<c:otherwise>
							<span class="editable" id="sex">女</span>
						</c:otherwise>
					</c:choose>

				</div>
			</div>

			<div class="profile-info-row">
				<div class="profile-info-name">电话</div>

				<div class="profile-info-value">
					<span class="editable" id="phone">${userInfoSession.phone}</span>
				</div>
			</div>

		<!-- 	<div class="profile-info-row">
				<div class="profile-info-name">Last Online</div>

				<div class="profile-info-value">
					<span class="editable" id="login">3 hours ago</span>
				</div>
			</div>

			<div class="profile-info-row">
				<div class="profile-info-name">About Me</div>

				<div class="profile-info-value">
					<span class="editable" id="about">Editable as WYSIWYG</span>
				</div>
			</div> -->
		</div>


	</div>
</body>
</html>